package cn.itcast.user.mapper;

import cn.itcast.user.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserMapper {

    @Select("select * from user where id = #{id}")
    User findById(@Param("id") int id);

//    @Select("select * from tb_user where username=#{username.name}")
//    User findById(@Param("username") re username);
////
    @Select("select * from user where kid=#{kid}")
    User findById1(@Param("kid") int kid);

//    @Select("SELECT course,cid,ct,address FROM `course`")

}
